//package com.example.java.kafka.es9client;
//
//public class DeleteIndex {
//    public static void main(String[] args) {
//        ConnectElasticsearch.connect(client -> {
//            try {
//                client.indices().delete(d -> d.index("user"));
//                System.out.println("User index deleted successfully");
//            }catch (Exception e) {
//                e.printStackTrace();
//            }
//        });
//    }
//}